package net.wenku8.reader.enums



class StatusCode{

    companion object {

        private val map = mapOf(
            1 to "请求成功",
            0 to "请求失败",
            2 to "用户名错误",
            3 to "密码错误",
            4 to "用户未登陆",
            5 to "已经在书架",
            6 to "书架已满",
            9 to "签到失败",
            10 to "推荐失败",
        )

        fun getErrorMsg(code : Int) : String {
            return map[code]?:"请求失败"
        }

    }

    ;
}


